package com.kgc.ebookmanager.service;

import com.github.pagehelper.PageInfo;
import com.kgc.ebookmanager.pojo.Entry;

/**
 * @author shkstart
 *
 */
public interface EntryService {
    //根据分类id查询，并分页
    public PageInfo<Entry> select(Integer pageNum, Integer pageSize, Integer categoryId);
    //新增图书
    public Integer add(Entry entry);
    //根据id查询图书
    public Entry selectById(Integer id);
    //根据id修改图书
    public Integer update(Entry entry);
    //根据id删除
    public Integer delete(Integer id);
}
